## 指定最低版本
cmake_minimum_required(VERSION 2.8)

## 宏
set(PROJECT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/..)
cmake_policy(SET CMP0046 NEW)

## 输出路径
set(OUTPUT_PATH            ${PROJECT_PATH}/Out)
set(LIBRARY_OUTPUT_PATH    ${OUTPUT_PATH}/lib)
set(EXECUTABLE_OUTPUT_PATH ${OUTPUT_PATH}/bin)

## 库路径
link_directories(${OUTPUT_PATH}/lib)

## api includes src
include_directories (${PROJECT_PATH}/Server/Api)
aux_source_directory(${PROJECT_PATH}/Ipc SRC_LIB_IPC)

## Ipc.so
add_library(libipc SHARED ${SRC_LIB_IPC})
set_target_properties(libipc PROPERTIES OUTPUT_NAME "ipc")
set_target_properties(libipc PROPERTIES LINKER_LANGUAGE CXX)
target_link_libraries(libipc c pthread stdc++)










